require("@nomicfoundation/hardhat-toolbox")
require("hardhat-deploy")
require("dotenv").config()

// const PRIVATE_KEY = process.env.PRIVATE_KEY
// const SEPOLIA_URL = process.env.SEPOLIA_URL

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
    solidity: {
        compilers: [
            {
                version: "0.8.8",
            },
            {
                version: "0.8.20",
            },
        ],
    },
    namedAccounts: {
        firstAccount: {
            default: 0,
        },
        secondAccount: {
            default: 1,
        },
    },
    gasReporter: {
        enabled: false,
    },
    networks: {
        // sepolia: {
        //     url: SEPOLIA_URL,
        //     accounts: [PRIVATE_KEY],
        //     chainId: 11155111,
        //     timeout: 30000, // 设置超时时间为30秒（默认是10秒）
        // },
        localhost: {
            url: "http://localhost:8545",
            chainId: 31337,
        },
    },
}
